
#include <iostream>
using namespace std;

#include "gtest/gtest.h"

#include "MinHeap.h"

TEST( MinHeapTest, Simple )
{
    MinHeap<int> H;
    int x;

    H.Insert( 7 ).Insert( 5 ).Insert( 3 ).Insert( 1 );

    EXPECT_EQ( 1, H.Min() );

    H.DeleteMin( x );
    EXPECT_EQ( 1, x );

    EXPECT_EQ( 3, H.Min() );
}

#include "main_stub.h"

